package dyyx.util;

public abstract class TelnetUtil{
	
	
	
	public static void main(String[] args) throws Exception {
		String ip = "10.57.30.214";
		int port = 3003;
		SimpleTelnetClient client = getTelnetClient(ip,port);
		
		
		String result = client.sendCommand("namespaces");
		
		System.out.println(result);
		
		
        result = client.sendCommand("status");
		
		System.out.println(result);
		
		
		
        result = client.sendCommand("sets");
		
		System.out.println(result);
		
		
		result = client.sendCommand("xxx");
			
	    System.out.println(result);
			

        result = client.sendCommand("status");
		
		System.out.println(result);

		
		client.close();
		
	}

	
	
	public static SimpleTelnetClient getTelnetClient(String ip,int port)throws Exception{
		return new SimpleTelnetClient(ip,port);	
	}
	
	
	
}
